var getMin = function (array) {
  var min = array[0]
  for (var i = 1; i < array.length; i++) {
    if (array[i] < min) {
      min = array[i]
    }
    return min
  }
}

let array = [60, 65, 3, 97, 75]
// getMin(array)
console.log(getMin(array));
